import unittest

loader = unittest.TestLoader()

# 通过测试模块名加载
# suite = loader.loadTestsFromName('case.testcase_dome01')

# 通过方法名加载
# suite = loader.loadTestsFromName('case.testcase_dome01.TestCaseDome1')

# 通过方法名加载
suite = loader.loadTestsFromName('case.testcase_dome01.TestCaseDome1.test02')


runner = unittest.TextTestRunner(verbosity=2)
runner.run(suite)